// 配置编译环境和线上环境之间的切换
const env = process.env

let config = {
  host:'',
  port:'',
  baseUrl:'',
  type:env.VUE_APP_TITLE,
  version: env.VUE_APP_VERSION,  // 版本号
  routerBase: env.BASE_URL, // VueRouter base，同nginx配置
  // h5Url:'http://dev.ctoupiao.com/h5/'
}


if (config.type === 'development') {
  config.port=''
  config.baseUrl = '/api'
  // config.host='https://dev.ctoupiao.com'
  config.host=''
} else if (config.type === 'production') {
  config.port=':8082'
  config.baseUrl = '/v2/api-docs'
  config.host='http://localhost'
  
} else if (config.type === 'test') {
  config.port=':8082'
  config.baseUrl = '/v2/api-docs'
  config.host='http://localhost'
}
export default config